﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Data.Linq;

namespace Soussous.Business
{
    [Table(Name = "notes")]
    public class Note : Identifiable
    {
        private int id;

        [Column(Storage = "id", IsPrimaryKey = true, CanBeNull = false,DbType = "Int NOT NULL IDENTITY",IsDbGenerated = true)]
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private DateTime date;

        [Column(Storage = "date")]
        public DateTime Date
        {
            get { return date; }
            set { date = value; }
        }

        private string description;

        [Column(Storage = "description")]
        public string Description
        {
            get { return description; }
            set { description = value; }
        }


    }
}
